Skip to content

Add keyboard shortcuts help overlay (press ?) - #15

Open
Munan059 wants to merge 3 commits into
quickdrawjs:mainfrom
Munan059:main
Open

Add keyboard shortcuts help overlay (press ?)#15
Munan059 wants to merge 3 commits into
quickdrawjs:mainfrom
Munan059:main

Conversation

@Munan059

Copy link
Copy Markdown

Pressing ? toggles a dismissable overlay listing the keyboard map from the README, styled to the current theme.

What changed

  • editor.js: _keyDown emits a help event on ? (Shift+/).
  • ui.js: adds the overlay, built inside the UI layer (.qd-ui) and toggled via editor.on('help', ...). Closes on Esc / ? / backdrop click / close button, and is torn down in destroy().
  • quickdraw.css: theme-styled .qd-help-* rules reusing the existing --qd-* tokens.

The overlay lives in the UI layer so hideUi hosts are unaffected.

Closes #3

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

@Munan059 is attempting to deploy a commit to the naman's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard shortcut cheat-sheet overlay (press ?)

1 participant